/*
 * Copyright (c) 2016 zhangcm. All Rights Reserved.
 */
package com.deram.ctin.common.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * @author zhangcm
 * @version 1.0, 2017/9/14
 */
@ApiModel(description = "分页结果")
public class PageResult<T> {

    @ApiModelProperty(value = "当前页码", required = true)
    private Integer pageNo;
    @ApiModelProperty(value = "每页条数", required = true)
    private Integer pageSize;
    @ApiModelProperty(value = "分页数据", required = true)
    private List<T> list;
    @ApiModelProperty(value = "总数", required = true)
    private Integer total;

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }
}
